package com.ftg.learn.util;

/**
 * 描述
 *
 * @author 布衣
 * @date 2025/11/23
 */
public enum Tip {

    OK(200,"操作成功"),
    FAIL(500,"操作失败"),
    NOT_LOGIN(401,"未登录"),
    NOT_FOUND(404,"未找到"),
    NOT_ALLOW(403,"无权限"),
    NOT_SUPPORT(405,"不支持"),
    NOT_ACCEPT(406,"不支持"),
    NOT_AUTH(407,"未授权"),
    NOT_EXIST(408,"不存在"),
    NOT_SUPPORT_METHOD(409,"不支持的方法"),
    NOT_SUPPORT_PARAM(410,"不支持的参数");

    private Integer code;

    private String message;

    Tip(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
